package src.mock.tomcat;

import java.io.IOException;

public class TestServlet extends MockServlet{
    @Override
    public void doGet(MockRequest mockRequest,MockResponse mockResponse){
        try{
            mockResponse.write("get response from a mock server,let's rock");
        }catch(IOException e){
            e.printStackTrace();
        }
    }
    @Override
    public void doPost(MockRequest mockRequest,MockResponse mockResponse){
        try{
            mockResponse.write("post response from a mock server,let's rock");
        }catch(IOException e){
            e.printStackTrace();
        }
    }
}
